package com.hs.dao;

import com.hs.VO.LessonPO;
import com.hs.VO.LessonStudentVO;
import com.hs.entity.Lesson;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface LessonMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Lesson record);

    int insertSelective(Lesson record);

    Lesson selectByPrimaryKey(Integer id);

    Lesson selectInfoByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Lesson record);

    int updateByPrimaryKey(Lesson record);


    List<Lesson> selectByCondition(Lesson map);

    int selectByConditionCount(Lesson map);

    List<LessonStudentVO> selectStudentLesson(LessonPO lessonPO);

    int selectStudentLessonCount(LessonPO lessonPO);

    List<LessonStudentVO> selectTeacherLesson(LessonPO lessonPO);

    int selectTeacherLessonCount(LessonPO lessonPO);
}